package cn.xk.ymcc;

import cn.xk.ymcc.domain.dto.EsDto;
import cn.xk.ymcc.fallback.SearchFeignClientFallBack;
import cn.xk.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-search",fallbackFactory = SearchFeignClientFallBack.class)
public interface SearchFeignClient {
    @RequestMapping(value = "/search/save",method = RequestMethod.POST )
     JSONResult save(@RequestBody EsDto esDto);
}
